<div class="layout hasFixedFooter chat">
    <header class="titleBar">
        <a href="javascript:history.back()" class="back"><img src="images/back.png" alt=""></a>
        <div class="title">
            咨询
        </div>
    </header>
    <div class="chatTip">
        <span>咨询目的：{{info.consult_purpose}}</span>
        <a href="javascript:history.back()">查看详情</a>
    </div>
    <div class="chatZone">
        <div ng-repeat="m in chatList" class="{{m.isMine?'me':''}}">
            <div class="avatarInfo">
                <img src="images/avatar-person.png" alt="">
                <h6>{{m.isMine?'我':m.name}}</h6>
            </div>
            <div class="text">
                <span ng-show="!m.isImage">{{m.message}}</span>
                <img src="{{m.message}}" alt="" ng-show="m.isImage" style="max-width: 300px">
            </div>
            <div class="clear"></div>
        </div>
        <!--div>
            <div class="avatarInfo">
                <img src="images/profile-avatar.png" alt="">
                <h6>刘大夫</h6>
            </div>
            <div class="text">
                <span>你好，请问患者年纪多大 性别</span>
            </div>
            <div class="clear"></div>
        </div>
        <div class="me">
            <div class="avatarInfo">
                <img src="images/avatar-person.png" alt="">
                <h6>王菲</h6>
            </div>
            <div class="text">
                <span>18岁 女</span>
            </div>
            <div class="clear"></div>
        </div-->
    </div>
    <div class="finishChat">
        <a href="" ng-click="finish()" ng-hide="readonly">结束咨询</a>
        <a href="" ng-hide="!readonly" style="color:#333">咨询记录</a>
    </div>

    <footer class="chatInputBar" ng-hide="readonly">
        <input type="text" ng-model="messageText">
        <a href="" ng-click="sendMessage()"><img src="images/chat-send.png" alt=""></a>
        <a href="" ng-click="sendImage()"><img src="images/chat-add.png" alt=""></a>
        <input type="file" name="hideFile" id="hideFile" class="hidden" value="">
    </footer>
</div>